package com.zy.restApi;

import com.zy.configs.FeignMultipartSupportConfig;
import com.zy.web.bean.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @program: shopping153_cloud
 * @description:
 * @author: zy
 * @create: 2025-08-22 16:58
 */
@FeignClient(name="fileUpload" , configuration=  FeignMultipartSupportConfig.class)
public interface FileUploadApi {



    @RequestMapping(  value="/upload",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE )
    public ResponseResult upload(
            @RequestPart("uploadFiles") MultipartFile[] uploadFiles
    );
}
